/**
 * Created by shenyinlin on 2018/6/24.
 */

import {Sprite} from "../base/Sprite.js";
import {DataStore} from "../base/DataStore.js";
    //计分板
export class ScoreItem extends Sprite{



    constructor(){

        const image = Sprite.getImage('scoreItem');

        super(
            image,
            0,0,
            image.width,image.height,
            (DataStore.getInstance().canvas.width - image.width) / 2,
            (DataStore.getInstance().canvas.height - image.height)/2.5,
            image.width,image.height
        );

    }

}